all:server
CFLAGS = -Iinclude -Wall -g
OBJS := $(patsubst src/%.c,obj/%.o,$(wildcard src/*.c))
LIB = -lpthread -lm -lmysqlclient
server:$(OBJS)
	gcc $(CFLAGS) -o $@ $^ $(LIB)
obj/%.o: src/%.c
	mkdir -p $(@D)
	gcc $(CFLAGS) -c $< -o $@
.PHONY:clean
clean:
	rm $(OBJS) server 
